import functools
from domain import User

__author__ = 'thanatos'

print(bool(0))


def func_1(name):
    def decorate(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            print('func_1 value is %s' % name)
            return func(*args, **kwargs)
        return wrapper
    return decorate

def func_2(name):
    def decorate(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            print('func_2 value is %s' % name)
            return func(*args, **kwargs)
        return wrapper
    return decorate

@func_2('func_2')
@func_1('func_1')
def func(name, password):
    print('name=%s and password=%s' % (name, password))
    pass

func('1', '123')

